package com.ruoyi.settlement.service.impl;

import java.util.List;

import com.ruoyi.settlement.domain.Lessee;
import com.ruoyi.settlement.domain.TbOrder;
import com.ruoyi.settlement.domain.Vo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.settlement.mapper.TbSettlementMapper;
import com.ruoyi.settlement.domain.TbSettlement;
import com.ruoyi.settlement.service.ITbSettlementService;

/**
 * 结算Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-05-08
 */
@Service
public class TbSettlementServiceImpl implements ITbSettlementService 
{
    @Autowired
    private TbSettlementMapper tbSettlementMapper;

    /**
     * 查询结算
     * 
     * @param settlementId 结算主键
     * @return 结算
     */
    @Override
    public TbSettlement selectTbSettlementBySettlementId(Long settlementId)
    {
        return tbSettlementMapper.selectTbSettlementBySettlementId(settlementId);
    }

    /**
     * 查询结算列表
     * 
     * @param tbSettlement 结算
     * @return 结算
     */
    @Override
    public List<TbSettlement> selectTbSettlementList(TbSettlement tbSettlement)
    {
        return tbSettlementMapper.selectTbSettlementList(tbSettlement);
    }

    /**
     * 新增结算
     * 
     * @param tbSettlement 结算
     * @return 结果
     */
    @Override
    public int insertTbSettlement(TbSettlement tbSettlement)
    {
        return tbSettlementMapper.insertTbSettlement(tbSettlement);
    }

    /**
     * 修改结算
     * 
     * @param tbSettlement 结算
     * @return 结果
     */
    @Override
    public int updateTbSettlement(TbSettlement tbSettlement)
    {
        return tbSettlementMapper.updateTbSettlement(tbSettlement);
    }

    /**
     * 批量删除结算
     * 
     * @param settlementIds 需要删除的结算主键
     * @return 结果
     */
    @Override
    public int deleteTbSettlementBySettlementIds(Long[] settlementIds)
    {
        return tbSettlementMapper.deleteTbSettlementBySettlementIds(settlementIds);
    }

    /**
     * 删除结算信息
     * 
     * @param settlementId 结算主键
     * @return 结果
     */
    @Override
    public int deleteTbSettlementBySettlementId(Long settlementId)
    {
        return tbSettlementMapper.deleteTbSettlementBySettlementId(settlementId);
    }

    @Override
    public void update(Long id) {
        tbSettlementMapper.update(id);
    }

    @Override
    public List<TbOrder> findOrderList(Vo vo) {
        return tbSettlementMapper.findOrderList(vo);
    }

    @Override
    public List<Lessee> getPayBy() {
        return tbSettlementMapper.getPayBy();
    }


}
